package com.di.base.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

@Mapper
public interface OrderMapper {
    @Insert("INSERT INTO order_tbl(user_id,product_id, count,amount) VALUES(#{userId}, #{productId},#{count}, #{account})")
    void insertOrder(@Param("userId") String userId, @Param("count") int count, @Param("productId") String productId, @Param("account") BigDecimal account);
}
